<style>
    div {
        outline: dashed thin lightblue;
         -webkit-hyphenate-character: "-";
         font-family: monospace;
    }
</style>
<p>
    There should be a hyphen at the end of the first line, and it should not
    overflow the box.
</p>
<table cellspacing=0 cellpadding=0>
    <tr>
        <td>
            <div>extraordinar&shy;ily</div>
        </td>
        <td style="width: 100%"></td>
    </tr>
</table>
